CLS
INPUT "Vvedita a:", a
INPUT "Vvedita b:", b
INPUT "Vvedita c:", c
IF a > b THEN SWAP a, b
IF b > c THEN SWAP b, c
IF a > b THEN SWAP a, b
PRINT a, b, c
CLS
n = 3
DIM a(n)
FOR i = 1 TO n
PRINT "vvedite element"; i
INPUT a(i)
NEXT
CLS
FOR i = 1 TO n
PRINT a(i);
NEXT
FOR i = 1 TO n
FOR j = 2 TO n
IF a(j) < a(j - 1) THEN SWAP a(j), a(j - 1)
NEXT
NEXT
PRINT
FOR i = 1 TO n
PRINT a(i);
NEXT
Тестирование выполнено в программе QB64 ( Скачать )